package com.erlang4j.api.exceptions;

import com.erlang4j.internal.exceptions.Erlang4jException;
import com.erlang4j.internal.exceptions.Erlang4jExceptionConstants;

/** You can only change state in a message handler once */
public class Erlang4jCannotChangeStateTwiceException extends Erlang4jException{

	public Erlang4jCannotChangeStateTwiceException(String currentStateName, String newStateName) {
		super(Erlang4jExceptionConstants.cannotChangeStateTwice , currentStateName, newStateName);
	}

}
